package com.bk.bookviews.controller;

import com.bk.bookviews.domain.Picture;
import com.bk.bookviews.domain.ResultMsg;
import com.bk.bookviews.service.PictureService;
import com.bk.bookviews.util.RedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/bk/picture")
public class PictureController {
    @Autowired
    RedisUtil redisUtil;
    @Autowired
    PictureService pictureService;

    @GetMapping("/all")
    public ResultMsg selectPictureAll(Picture picture) {
        return ResultMsg.successResult(pictureService.selectPictureList(picture));
    }


}
